/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package air.eb;

/**
 *
 * @author Keith Augustsson
 */
public class Trip {

    private int nr;
    private String passenger;

    public Trip() {
    }

    public Trip(int nr, String passenger) {
        this.nr = nr;
        this.passenger = passenger;
    }

    public int getNr() {
        return nr;
    }

    public String getPassenger() {
        return passenger;
    }

    public void setNr(int nr) {
        this.nr = nr;
    }

    public void setPassenger(String passenger) {
        this.passenger = passenger;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Trip other = (Trip) obj;
        if (this.nr != other.nr) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 97 * hash + this.nr;
        return hash;
    }
}
